package com.jinly.ryder.manage.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.jinly.ryder.common.dao.entity.BaseDO;
import com.jinly.ryder.manage.service.model.InstanceType;
import com.jinly.ryder.manage.service.model.SecretMode;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 保密信息
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName(value = "instance_secret", autoResultMap = true)
public class InstanceSecretDO extends BaseDO {

    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 保密实例类型
     */
    @TableField(value = "instance_type")
    private InstanceType instanceType;

    /**
     * 实例ID
     */
    @TableField(value = "instance_id")
    private Integer instanceId;

    /**
     * 保密名称
     */
    @TableField(value = "secret_name")
    private String secretName;

    /**
     * 保密信息
     */
    @TableField(value = "cipher_text")
    private String cipherText;

    /**
     * 加密方式
     */
    @TableField(value = "mode")
    private SecretMode mode;

}
